<div class="box box-solid no-margin box-show">
    <div class="box-body">
        <h4>采购单信息</h4>
        <div class="box-body table-responsive no-padding">
            <table class="table">
                <thead>
                <tr>
                    <th>订单号</th>
                    <th>单据状态</th>
                    <th>供应商</th>
                    <th>结算方式</th>
                    <th>采购总金额</th>
                    <th>采购数量</th>
                    <th>下单时间</th>
                    <th>采购人</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>{{ $purchase->purchase_no }}</td>
                    <td>{{ \App\Models\Purchase\PurchaseOrder::$_status[$purchase->status] }}</td>
                    <td>{{ $purchase->supplier->name ?? '未知' }}</td>
                    <td>{{ $purchase->settlement_method->settlement_method ?? '未知' }}</td>
                    <td>{{ round($orderAmount,3) }}</td>
                    <td>{{ $orderNum }}</td>
                    <td>{{ $purchase->order_at }}</td>
                    <td>{{ \App\Util\User::getUsernameById($purchase->pu_user_id) }}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
<div class="box box-solid no-margin box-show">
    <div class="box-body">
        <h4>下单信息</h4>
        <div class="box-body table-responsive no-padding">
            <table class="table">
                <thead>
                <tr>
                    <th>交期</th>
                    <th width="45%">备注</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>{{ $purchase->commit_date }}</td>
                    <td>{{ $purchase->remarks }}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
